﻿using System;
using System.IO;
using System.Xml.Serialization;
using EpiNEXT.Services.Fields.Properties;

namespace EpiNEXT.Services.Fields
{
    //[Serializable()]
    public class StaticImageField : DecoratorField
    {
        [XmlElement]
        public Color BorderColor { get; set; }

        /// <summary>
        /// The image bytes for the static image
        /// </summary>
        [XmlElement("ImageData")]
        public byte[] ImageBytes { get; set; }

        public StaticImageField()
            : base()
        {
            IsTabStop = false;
            TabIndex = -1;
            PromptText = String.Empty;
            PromptFontSize = Constants.DEFAULT_PROMPT_FONT_SIZE;
            DisplayOnEveryPage = false;
        }
    }
}
